package net.da.tools;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Population of the sample data to the test database using JPA.
 *
 * @author DDZ
 */
public class Populator {
    public static void main(String args[]){
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("default", new java.util.HashMap());
        EntityManager em = emf.createEntityManager();
        em.getTransaction().begin();
        Populator.populate(em);
        em.getTransaction().commit();
        em.close();
        emf.close();
    }

    public static void populate(EntityManager em){
    }
}
